//
//  CommentTableViewCell.m
//  MyMovie
//
//  Created by lanou on 15/9/23.
//  Copyright (c) 2015年 HeQiangQiang. All rights reserved.
//

#import "CommentTableViewCell.h"

@implementation CommentTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.iView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 40, 40)];
        
        self.name = [[UILabel alloc] initWithFrame:CGRectMake(50, 10, 200, 40)];
        self.name.textColor = [UIColor redColor];
        
        self.comment =[[UILabel alloc] initWithFrame:CGRectMake(10, 50, kWidth- 20, 80)];
        self.comment.numberOfLines = 0;
        self.comment.textColor = [UIColor whiteColor];
 
        [self.contentView addSubview:self.name];
        [self.contentView addSubview:self.iView];
        [self.contentView addSubview:self.comment];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
